package it.csi.finregio.finreges.dto;

import java.io.Serializable;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;

public class NotaScadenza implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -7254052776035107514L;
	private String idNota;
	private Scheda scheda;
	private String notaInterna;
	private String dataScadenza;
	private String termineScadenza;
	public String getIdNota() {
		return idNota;
	}
	public void setIdNota(String idNota) {
		this.idNota = idNota;
	}
	public Scheda getScheda() {
		return scheda;
	}
	public void setScheda(Scheda scheda) {
		this.scheda = scheda;
	}
	public String getNotaInterna() {
		return notaInterna;
	}
	public void setNotaInterna(String notaInterna) {
		this.notaInterna = notaInterna;
	}
	public String getDataScadenza() {
		return dataScadenza;
	}
	public void setDataScadenza(String dataScadenza) {
		this.dataScadenza = dataScadenza;
	}
	public String getTermineScadenza() {
		return termineScadenza;
	}
	public void setTermineScadenza(String termineScadenza) {
		this.termineScadenza = termineScadenza;
	}
	/**
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		return new ToStringBuilder(this).append("scheda", this.scheda).append(
				"idNota", this.idNota).append("termineScadenza",
				this.termineScadenza).append("notaInterna", this.notaInterna)
				.append("dataScadenza", this.dataScadenza).toString();
	}
	/**
	 * @see java.lang.Object#equals(Object)
	 */
	public boolean equals(Object object) {
		if (!(object instanceof NotaScadenza)) {
			return false;
		}
		NotaScadenza rhs = (NotaScadenza) object;
		return new EqualsBuilder().appendSuper(super.equals(object)).append(
				this.notaInterna, rhs.notaInterna).append(this.scheda,
				rhs.scheda).append(this.termineScadenza, rhs.termineScadenza)
				.append(this.idNota, rhs.idNota).append(this.dataScadenza,
						rhs.dataScadenza).isEquals();
	}
	/**
	 * @see java.lang.Object#hashCode()
	 */
	public int hashCode() {
		return new HashCodeBuilder(1773467331, -869185729).appendSuper(
				super.hashCode()).append(this.notaInterna).append(this.scheda)
				.append(this.termineScadenza).append(this.idNota).append(
						this.dataScadenza).toHashCode();
	}
}
